import Home from '@/pages/Home.js'
import Child from '@/pages/Home/Child.js'
import Child2 from "@/pages/Home/Child2";
import Effect from "@/pages/Effect";

const routes = [
  {
    path: '/home',
    component: Home,
    children: [
      {
        path: '/home/child',
        component: Child,
      },
      {
        path: '/home/child2',
        component: Child2,
      }
    ]
  }, {
    path: '/effect',
    component: Effect
  },
  {
    path: '/',
    redirect: '/effect'
  }
];

export default routes
